package com.medical.system.controller;

import com.medical.system.common.Result;
import com.medical.system.service.SchedulingService;
import com.medical.system.vo.SchedulingVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "排班控制器")
@RestController
@RequestMapping("/admin/system/scheduling")
public class SchedulingController {

    @Autowired
    private SchedulingService schedulingService;

    @ApiOperation("分页查询")
    @GetMapping("/{page}/{limit}")
    public Result queryScheduling(@PathVariable Long page, @PathVariable Long limit, SchedulingVo schedulingVo) {
        return this.schedulingService.selectPage(page,limit, schedulingVo);
    }


}
